Skip to content

Remove calledRun debug checks. NFC#27135

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_debug_calledRun
Open

Remove calledRun debug checks. NFC#27135
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_debug_calledRun

Conversation

@sbc100

@sbc100 sbc100 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

This is redundant since there is already a similar assertion in initRuntime which is the first thing this function calls.

@sbc100 sbc100 requested review from dschuff and kripken June 17, 2026 16:26
@kripken

kripken commented Jun 17, 2026

Copy link
Copy Markdown
Member

This might be redundant, but isn't it still useful? E.g. we might refactor away initRuntime entirely, later, and then this would be useful in practice. Redundant assertions seem ok to me in debug builds?

@sbc100

sbc100 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

I'm hoping to straighten out all this code in a followup do it will be less relevant then. Happy to wait and make this part of that change.

@sbc100

sbc100 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

The removal of the Module property I would like to move forward with though, since that effects codesize of release builds #27133

This is redundant since there is already an assertion in `initRuntime`
which is the first thing this function calls.
@sbc100 sbc100 force-pushed the remove_debug_calledRun branch from 269eab3 to 215ac63 Compare June 18, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants